﻿@************************************************************************************//
// Autor:  						                				     				*//
//***********************************************************************************//
// Edit()	Acceso solo ADMINISTRADOR												*//
// Vista que devuelve la vista que permite Editar un Proveedor especificado. 		*//
// _________________________________________________________________________________*@

@model SIBI.Models.Proveedor
@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Proveedor</legend>

        @Html.HiddenFor(model => model.ProveedorId)

        <div class="editor-label">
            Nombre (*)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cnom)
            @Html.ValidationMessageFor(model => model.cnom)
        </div>

        <div class="editor-label">
            Contacto
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cres)
            @Html.ValidationMessageFor(model => model.cres)
        </div>

        <div class="editor-label">
            Ubicación
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cubi)
            @Html.ValidationMessageFor(model => model.cubi)
        </div>

        <div class="editor-label">
            Descripción
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cdes)
            @Html.ValidationMessageFor(model => model.cdes)
        </div>

        <div class="editor-label"> 
            Correo
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ccor)
            @Html.ValidationMessageFor(model => model.ccor)
        </div>

        <p>
            <input type="submit" value="Salvar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Menú Anterior", "SearchIndex")
</div>
